package cn.lingyangwl.agile.pay.client.constants;

import cn.lingyangwl.framework.cache.core.key.ICacheKey;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.concurrent.TimeUnit;

/**
 * @author shenguangyang
 */
@Getter
@AllArgsConstructor
public enum PayCacheKey implements ICacheKey {
    /**
     * 支付全局锁, 这里的时间没有用到 <br/>
     * arg1: 订单号 <br/>
     */
    PAY_GLOBAL_LOCK("pay_client_global_lock:%s", 24, TimeUnit.HOURS),
    ;
    private final String key;
    private final int expire;
    private final TimeUnit unit;
}
